<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--使用@{}会自动添加context-path,目录要以/开头-->
    <link rel="stylesheet" th:href="@{/css/style.css}" />
</head>
<body>
<h3 th:text="${name}"></h3>
<!-- th:each标签放在哪个元素上，哪个元素就会循环生成 -->
<ul>
    <li th:each="item:${users}">[[${item}]]</li>
</ul>
<ul>
    <li th:each="item:${persons}">
        <p th:text="${item.name}"></p>
        <p th:text="${item.age}"></p>
        <p th:text="${item.sex}"></p>
    </li>
</ul>
</body>
</html>